package com.wmh.baseservice.skd.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel(value = "用户地址响应体封装")
public class UserAddressDTO {
    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("收货人")
    @NotBlank(message = "未提交收货人姓名")
    private String name;

    @ApiModelProperty("联系电话")
    @NotBlank(message = "未提交联系电话")
    private String phone;

    @ApiModelProperty("省")
    @NotBlank(message = "未提交省份信息")
    private String province;

    @ApiModelProperty("市")
    @NotBlank(message = "未提交市区信息")
    private String city;

    @ApiModelProperty("区/镇")
    @NotBlank(message = "未提交区/镇信息")
    private String area;

    @ApiModelProperty("详细地址")
    @NotBlank(message = "未提交详细地址信息")
    private String address;
}
